<%#
#content for siderbar
#
%>
<% content_for :siderbar do %>
  <p>
    <h1>Operation:</h1>
    <ul>
      <li><%= link_to "Write Article", :controller => "entry", :action => "create" %></li>
      <li><%= link_to "Edit Category", :controller => "category", :action => "create" %></li>
    </ul>
  </p>
  <p>
    <h1>Category:</h1>
    <ul>
      <% for category in categories %>
        <li><%= link_to "#{category.name} (#{category.entries_count})", :controller => "entry", :action => "list", :category => category.id %></li>
      <% end %>
    </ul>
  </p>
<% end %>